using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace RandDesk2005
{
	/// <summary>
	/// Descrizione di riepilogo per Form1.
	/// </summary>
	public class frmSystray : System.Windows.Forms.Form
	{
		private System.Windows.Forms.ContextMenu systrayMenu;
		private System.Windows.Forms.MenuItem menuExit;
		private System.Windows.Forms.NotifyIcon iconSystray;
		private System.Windows.Forms.MenuItem menuAbout;
		private System.Windows.Forms.MenuItem menuBrowse;
		private System.Windows.Forms.MenuItem menuFolder;
		private System.Windows.Forms.MenuItem menuCurrent;
		private System.Windows.Forms.MenuItem menuCurrentDelete;
		private System.Windows.Forms.MenuItem menuCurrentOpen;
		private System.Windows.Forms.MenuItem menuCategory;
		private System.Windows.Forms.MenuItem menuItem1;
		private System.ComponentModel.IContainer components;

		public frmSystray()
		{
			//
			// Necessario per il supporto di Progettazione Windows Form
			//
			InitializeComponent();

			//
			// TODO: aggiungere il codice del costruttore dopo la chiamata a InitializeComponent
			//
		}

		/// <summary>
		/// Pulire le risorse in uso.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Codice generato da Progettazione Windows Form
		/// <summary>
		/// Metodo necessario per il supporto della finestra di progettazione. Non modificare
		/// il contenuto del metodo con l'editor di codice.
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmSystray));
			this.iconSystray = new System.Windows.Forms.NotifyIcon(this.components);
			this.systrayMenu = new System.Windows.Forms.ContextMenu();
			this.menuCurrent = new System.Windows.Forms.MenuItem();
			this.menuCurrentDelete = new System.Windows.Forms.MenuItem();
			this.menuCurrentOpen = new System.Windows.Forms.MenuItem();
			this.menuBrowse = new System.Windows.Forms.MenuItem();
			this.menuCategory = new System.Windows.Forms.MenuItem();
			this.menuFolder = new System.Windows.Forms.MenuItem();
			this.menuAbout = new System.Windows.Forms.MenuItem();
			this.menuExit = new System.Windows.Forms.MenuItem();
			this.menuItem1 = new System.Windows.Forms.MenuItem();
			// 
			// iconSystray
			// 
			this.iconSystray.ContextMenu = this.systrayMenu;
			this.iconSystray.Icon = ((System.Drawing.Icon)(resources.GetObject("iconSystray.Icon")));
			this.iconSystray.Text = "sysRandDesk2005";
			this.iconSystray.Visible = true;
			// 
			// systrayMenu
			// 
			this.systrayMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																						this.menuCurrent,
																						this.menuBrowse,
																						this.menuCategory,
																						this.menuFolder,
																						this.menuItem1,
																						this.menuAbout,
																						this.menuExit});
			// 
			// menuCurrent
			// 
			this.menuCurrent.Index = 0;
			this.menuCurrent.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																						this.menuCurrentDelete,
																						this.menuCurrentOpen});
			this.menuCurrent.Text = "Current WallPaper";
			// 
			// menuCurrentDelete
			// 
			this.menuCurrentDelete.Index = 0;
			this.menuCurrentDelete.Text = "Delete";
			// 
			// menuCurrentOpen
			// 
			this.menuCurrentOpen.Index = 1;
			this.menuCurrentOpen.Text = "Open";
			// 
			// menuBrowse
			// 
			this.menuBrowse.Index = 1;
			this.menuBrowse.Text = "Browse WallPaper";
			// 
			// menuCategory
			// 
			this.menuCategory.Index = 2;
			this.menuCategory.Text = "Set Category";
			// 
			// menuFolder
			// 
			this.menuFolder.Index = 3;
			this.menuFolder.Text = "Open Folder";
			// 
			// menuAbout
			// 
			this.menuAbout.Index = 5;
			this.menuAbout.Text = "About";
			// 
			// menuExit
			// 
			this.menuExit.Index = 6;
			this.menuExit.Text = "Exit";
			this.menuExit.Click += new System.EventHandler(this.menuItem1_Click);
			// 
			// menuItem1
			// 
			this.menuItem1.Index = 4;
			this.menuItem1.Text = "Settings";
			// 
			// frmSystray
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(292, 272);
			this.Name = "frmSystray";
			this.ShowInTaskbar = false;
			this.Text = "RandDesk2005";
			this.WindowState = System.Windows.Forms.FormWindowState.Minimized;

		}
		#endregion

		/// <summary>
		/// Il punto di ingresso principale dell'applicazione.
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new frmSystray());
			
		}

		private void menuItem1_Click(object sender, System.EventArgs e)
		{
			iconSystray.Visible = false;
			Application.Exit();
		}

	}
}
